package org.spring.learn.project.service;

import org.spring.learn.project.dao.MyDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MyService {

//    @Qualifier("dao")
    @Resource(name="dao")
//    @Autowired
    private MyDao myDao;

    public void print(){
        System.out.println(myDao);
    }
}
